<?php

namespace common\datas;

class Enums
{
    const IS_TRUE = 1;
    const IS_FALSE = 2;

    /**
     * @return array [desc]
     */
    public static function getIsTrueDatas()
    {
        return [
            self::IS_TRUE => ['是'],
            self::IS_FALSE => ['否'],
        ];
    }

    /**
     * @return array
     */
    public static function getIsTrueDesc()
    {
        $descArr = [];
        foreach (static::getIsTrueDatas() as $k => $v) {
            $descArr[$k] = $v[0];
        }
        return $descArr;
    }
}
